del /q /s dist\* 
echo "准备更新"
call npm run build 
echo "判断是否存在文件"
if exist dist\*.html (

echo "删除旧文件"
ssh -i D:\jenkins_rsa administrator@ftpwww.jiyi.show C:\wwwroot\Build\web\hw_wz_template\delete.bat

echo "复制文件"
scp -i D:\jenkins_rsa -r dist\* administrator@ftpwww.jiyi.show:/C:\wwwroot\Build\web\hw_wz_template

echo "复制完成"

echo "准备执行"
ssh -i D:\jenkins_rsa administrator@ftpwww.jiyi.show C:\wwwroot\Build\web\hw_wz_template\execute.bat

echo "执行完成"
)else ( echo "没有需要打包的文件")

echo "更新完成"